package com.jing.spring_boot_demo.provider.commons.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class User {
    @ExcelProperty(value = "主键", index = 0)
    private Integer id;
    @ExcelProperty(value = "密码", index = 1)
    private String name;
    @ExcelProperty(value = "名字", index = 2)
    private String password;
    @ExcelProperty(value = "备注", index = 3)
    private String remark;

    public User() {
    }

    public User(Integer id, String name, String password, String remark) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getRemark() {
        return remark;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
